package com.craney.testTextField
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class InHtmlImg
	{
		private var myText:TextField = new TextField();
		
		private var htmlString:String = "<p>This is <b>some</b> content to <i>test</i> and <i>see</i></p>" + 
				"<p><img src='dog.jpg' width='100' height='200'></p>" + 
				"<p>what can be rendered.</p><p>You should see an eye image and some <u>HTML</u> text.</p>";
		
		public function InHtmlImg(ps:Sprite)
		{
			myText.width = 200;
			myText.height = 250;
			myText.multiline = true;
			myText.wordWrap = true;
			myText.border = true;
			
			myText.htmlText = htmlString;
			ps.addChild(myText);
			
		}

	}
}